package com.lu.support.datascope;

import com.lu.core.support.DataScopePermissionAbstract;
import com.lu.core.support.DataScopeProxy;
import com.lu.model.exception.LuBootAssert;
import com.lu.utils.SecurityUtil;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.LongValue;
import net.sf.jsqlparser.statement.select.PlainSelect;

/**
 * @program lu-boot-saas
 * @description:
 * @author: zhanglu
 * @create: 2022-09-27 19:46:00
 */
public class SimpleDataScopePermission extends DataScopePermissionAbstract {

    @Override
    protected void methodExecute(DataScopeProxy.DataScope dataScope, PlainSelect plainSelect, Expression mark) {
        super.methodExecute(dataScope, plainSelect, mark);
    }

    @Override
    protected Expression getExpression() {
        return new LongValue(SecurityUtil.getMerchant().getId());
    }

}
